Skip to content

18.0 migration survey certification sending#231

Open
layadelcarmen wants to merge 16 commits into
OCA:18.0from
layadelcarmen:18.0-migration-survey_certification_sending
Open

18.0 migration survey certification sending#231
layadelcarmen wants to merge 16 commits into
OCA:18.0from
layadelcarmen:18.0-migration-survey_certification_sending

Conversation

@layadelcarmen

Copy link
Copy Markdown

No description provided.

pilarvargas-tecnativa and others added 13 commits June 17, 2026 10:42
Currently translated at 100.0% (11 of 11 strings)

Translation: survey-17.0/survey-17.0-survey_certification_sending
Translate-URL: https://translation.odoo-community.org/projects/survey-17-0/survey-17-0-survey_certification_sending/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: survey-17.0/survey-17.0-survey_certification_sending
Translate-URL: https://translation.odoo-community.org/projects/survey-17-0/survey-17-0-survey_certification_sending/
Currently translated at 100.0% (12 of 12 strings)

Translation: survey-17.0/survey-17.0-survey_certification_sending
Translate-URL: https://translation.odoo-community.org/projects/survey-17-0/survey-17-0-survey_certification_sending/it/
@OCA-git-bot OCA-git-bot added series:18.0 mod:survey_certification_sending Module survey_certification_sending labels Jun 17, 2026
Laya Rabasa added 3 commits June 18, 2026 11:54
…mplate and survey_user_input

Add 7 new tests covering previously uncovered branches in:
- models/mail_template.py: send_mail skip logic (survey-level, partner-level, and no-skip paths)
- models/survey_user_input.py: _mark_done branches (test_entry, no template) and
  action_manual_send_certification return notifications (success/warning)
Add test for action_manual_send_certification when answer passes but
certification_mail_template_id is unset — inner if template: block is
skipped, sent_count stays 0, warning notification is returned.
…vey models

The module overrides send_mail on all mail.template records. The guard
"if self.model == 'survey.user_input'" ensures skip logic never affects
templates for other models. Add test to cover the False branch of that
guard and prove the override is transparent to non-survey templates.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:survey_certification_sending Module survey_certification_sending series:18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants